import java.io.StringReader

import org.openscience.cdk.io.MDLReader

module Mol
  module Parser
    module MDLMolFileParser

      # Parses the molfile and returns a Mol::MdlMolecule representing the
      # molfile.
      def parse_mol_file(mol_file)
        reader = MDLReader.new(StringReader.new(mol_file))
        reader.read(Mol::Molecule.new)
      end
    end
  end
end
